home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Programming / Programming Tools / Pascal Demos from Apple / scroll example / SCROLLR.TEXT < prev   
Encoding:
Text File  |  1985-02-05  |  770 b   |  58 lines  |  [TEXT/ttxt]

  1. Example/Scroll.Rsrc
  2.  
  3. *    This is the resource file for Scroll, a simple program to demonstrate
  4. *    the use of scroll bars.
  5.  
  6. Type SCRL = STR
  7.   ,256
  8. Scroll       by Cary Clark, Macintosh Technical Support      V7/5  © Apple, 1984
  9.  
  10. Type MENU
  11.   ,1(4)
  12.   File
  13.     Quit
  14.  
  15.   ,2(4)
  16.   Scroll Bar
  17.     Horizontal
  18.     Vertical
  19.     (-
  20.     Text
  21.     Graphics
  22.  
  23. * a document window
  24. Type WIND
  25.   ,256(4)
  26. A Scrolling Example
  27.   40 20 339 480
  28.   Invisible NoGoAway
  29.   0
  30.   0
  31.  
  32. * the vertical scroll bar
  33. Type CNTL
  34.   ,256(4)
  35. x
  36.   -1 445 285 461
  37.   Visible
  38.   16
  39.   0
  40.   0 0 400
  41.  
  42. * the horizontal scroll bar
  43.   ,257(4)
  44. x
  45.   284 -1 300 446
  46.   Invisible
  47.   16
  48.   0
  49.   0 0 300
  50.  
  51. Type STR
  52.  ,256(4)
  53.   Please refer to the Control Manager manual for more information about scroll bars.
  54.  
  55. Type CODE
  56.   Example/ScrollL,0
  57.  
  58.